home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.5 / am / progs.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  2.7 KB  |  77 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2001
  3. ##  Free Software Foundation, Inc.
  4.  
  5. ## This program is free software; you can redistribute it and/or modify
  6. ## it under the terms of the GNU General Public License as published by
  7. ## the Free Software Foundation; either version 2, or (at your option)
  8. ## any later version.
  9.  
  10. ## This program is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ## GNU General Public License for more details.
  14.  
  15. ## You should have received a copy of the GNU General Public License
  16. ## along with this program; if not, write to the Free Software
  17. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  18. ## 02111-1307, USA.
  19.  
  20.  
  21. ## ------------ ##
  22. ## Installing.  ##
  23. ## ------------ ##
  24.  
  25. if %?INSTALL%
  26. _am_installdirs += $(DESTDIR)$(%NDIR%dir)
  27. ?EXEC?.PHONY install-exec-am: install-%DIR%PROGRAMS
  28. ?!EXEC?.PHONY install-data-am: install-%DIR%PROGRAMS
  29. install-%DIR%PROGRAMS: $(%DIR%_PROGRAMS)
  30.     @$(NORMAL_INSTALL)
  31.     $(mkinstalldirs) $(DESTDIR)$(%NDIR%dir)
  32. ## Funny invocation because Makefile variable can be empty, leading to
  33. ## a syntax error in sh.
  34.     @list='$(%DIR%_PROGRAMS)'; for p in $$list; do \
  35. ## On Cygwin with libtool test won't see `foo.exe' but instead `foo'.
  36. ## So we check for both.
  37.       p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  38.       if test -f $$p \
  39. ?LIBTOOL?         || test -f $$p1 \
  40.       ; then \
  41. ## Note that we explicitly set the libtool mode.  This avoids any
  42. ## lossage if the install program doesn't have a name that libtool
  43. ## expects.
  44.         f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
  45. ?LIBTOOL?       echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
  46. ?LIBTOOL?       $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f; \
  47. ?!LIBTOOL?       echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
  48. ?!LIBTOOL?       $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f; \
  49.       else :; fi; \
  50.     done
  51. endif %?INSTALL%
  52.  
  53.  
  54. ## -------------- ##
  55. ## Uninstalling.  ##
  56. ## -------------- ##
  57.  
  58. if %?INSTALL%
  59. .PHONY uninstall-am: uninstall-%DIR%PROGRAMS
  60. uninstall-%DIR%PROGRAMS:
  61.     @$(NORMAL_UNINSTALL)
  62.     @list='$(%DIR%_PROGRAMS)'; for p in $$list; do \
  63.       f=`echo $$p|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  64.       echo " rm -f $(DESTDIR)$(%NDIR%dir)/$$f"; \
  65.       rm -f $(DESTDIR)$(%NDIR%dir)/$$f; \
  66.     done
  67. endif %?INSTALL%
  68.  
  69.  
  70. ## ---------- ##
  71. ## Cleaning.  ##
  72. ## ---------- ##
  73.  
  74. .PHONY clean-am: clean-%DIR%PROGRAMS
  75. clean-%DIR%PROGRAMS:
  76.     -test -z "$(%DIR%_PROGRAMS)" || rm -f $(%DIR%_PROGRAMS)
  77.